package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataRecommendDao;
import io.renren.entity.DataRecommendEntity;
import io.renren.service.DataRecommendService;



@Service("dataRecommendService")
public class DataRecommendServiceImpl implements DataRecommendService {
	@Autowired
	private DataRecommendDao dataRecommendDao;
	
	@Override
	public DataRecommendEntity queryObject(String recommenderid){
		return dataRecommendDao.queryObject(recommenderid);
	}
	
	@Override
	public List<DataRecommendEntity> queryList(Map<String, Object> map){
		return dataRecommendDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataRecommendDao.queryTotal(map);
	}
	
	@Override
	public void save(DataRecommendEntity dataRecommend){
		dataRecommendDao.save(dataRecommend);
	}
	
	@Override
	public void update(DataRecommendEntity dataRecommend){
		dataRecommendDao.update(dataRecommend);
	}
	
	@Override
	public void delete(String recommenderid){
		dataRecommendDao.delete(recommenderid);
	}
	
	@Override
	public void deleteBatch(String[] recommenderids){
		dataRecommendDao.deleteBatch(recommenderids);
	}
	
}
